﻿using LeafCore.Commons.Enums;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeafCore.Components.SSO
{
    public interface IOSSService
    {

        /// <summary>
        /// 文件上传至阿里云OSS
        /// </summary>
        /// <param name="fileName">文件名称</param>
        /// <param name="file">文件</param>
        /// <param name="bucketNameType">文件类型(桶路径)(1.图片 2.视频 3.文件)</param>
        /// <param name="filePath">文件路径</param>
        /// <returns></returns>
        Task<(bool, string)> UploadFileAsync(string fileName, IFormFile file, BucketNameType bucketNameType,string filePath);

    }
}
